package com.huike.web.controller.common;

import com.huike.clues.service.ISysFileService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/common/upload")
public class CommomController {

    @Autowired(required = false)
    private ISysFileService fileService;

    @PostMapping
    public AjaxResult uploadContract(MultipartFile file){
        return fileService.upload(file);

    }
}
